﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPageSitio : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    protected void btnEnviar_Click(object sender, EventArgs e)
    {
        if (txtNombre.Text == "1234")
        {
            lblError.Text = "Favor de ingresar su Nombre";
        }
        else {
            SqlDataSource1.Insert();
            Response.Redirect("http://localhost:55634/Web2/Default.aspx");
        }
        }
}

